import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String aa = "abcddd";
        System.out.println(aa.substring(1));

        B a = B.Y;
        a.go();
        List<Integer> list = new ArrayList<>();
        List<Number> list1 = new ArrayList<>(list);

        for (int i = 0; i < 10; i++) {
            if (i == 5) {
                continue;
            }
        }
    }
    public static void main1(String[] args) {


        System.out.println("我是废物丫丫顶顶顶顶");
        System.out.println("我纯废物哦哦，还不错11");
        //认识枚举
        A a1 = A.X;
        System.out.println(a1);

        //1.枚举类的构造方法是私有的，不能对外创建对象
        //A a = new A();

        //2.枚举类的第一行都是常量，记住的是枚举类的对象
        A a2 = A.Y;

        //3.枚举类提供一些额外的API
        A[] as = A.values();
        for (A x : as) {
            System.out.print(x + " ");
        }
        System.out.println();
        A a3 = A.valueOf("Y");
        System.out.println(a3.name());//拿名字
        System.out.println(a3.ordinal());//拿索引
    }
}
